<html>
<head>
<link type="text/css" rel="stylesheet" href="/stylesheets/main.css" />
</head>
  <body>

	<h1>Meus Achados</h1>

	<table border="1">
	<tr>
		<th>Nome</th>
		<th>RG</th>
		<th>CPF</th>
		<th>T&iacute;tulo de Eleitor</th>
		<th>Habilita&ccedil;&atilde;o</th>
		<th>Outros</th>
		<th>&nbsp;</th>
	</tr>
    {% for achado in achados %}
	<tr valign="top">
		<td>{{ achado.nome|escape }}</td>
		<td align="center">&nbsp;{%if achado.rg%}X{%endif%}</td>
		<td align="center">&nbsp;{%if achado.cpf%}X{%endif%}</td>
		<td align="center">&nbsp;{%if achado.titulo_de_eleitor%}X{%endif%}</td>
		<td align="center">&nbsp;{%if achado.cnh%}X{%endif%}</td>
		<td align="center">&nbsp;{%if achado.outros%}X{%endif%}</td>
		<td><a onclick="return confirm( 'Rapaz .... tem certeza ?' )" href="/apagar-achado?key={{ achado.key }}">Apagar</a></td>
	</tr>
    {% endfor %}
	</table>

	<h1>Adicionar Achado</h1>
	<form action="/adicionar-achado" method="post">
	<table border="1">
	<tr>
		<th>Nome</th>
		<th>RG</th>
		<th>CPF</th>
		<th>T&iacute;tulo de Eleitor</th>
		<th>Habilita&ccedil;&atilde;o</th>
		<th>Outros</th>
		<th>&nbsp;</th>
	</tr>
	<tr>
		<td><input type="text" name="nome"></td>			
		<td align="center"><input type="checkbox" name="rg"></td>			
		<td align="center"><input type="checkbox" name="cpf"></td>			
		<td align="center"><input type="checkbox" name="titulo_de_eleitor"></td>			
		<td align="center"><input type="checkbox" name="cnh"></td>			
		<td align="center"><input type="checkbox" name="outros"></td>			
		<td align="center"><input type="submit" value="Adicionar"></td>
	</tr>
	</table>

	</form>

    <a href="{{ url }}">{{ url_linktext }}</a>

  </body>
</html>

